package com.flyco.modules.sms.service.impl;

import com.flyco.modules.sms.entity.SmsGiftProductRelation;
import com.flyco.modules.sms.mapper.SmsGiftProductRelationMapper;
import com.flyco.modules.sms.service.ISmsGiftProductRelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 赠品和产品的关系表
 * @Author: flyco
 * @Date:   2023-02-03
 * @Version: V1.0
 */
@Service
public class SmsGiftProductRelationServiceImpl extends ServiceImpl<SmsGiftProductRelationMapper, SmsGiftProductRelation> implements ISmsGiftProductRelationService {

    @Autowired
    private SmsGiftProductRelationMapper productRelationMapper;

    @Override
    public Integer insertProductRelationForCategoryId(List<Long> categoryIds , Long giftId){
        return productRelationMapper.insertProductRelationForCategoryId(categoryIds,giftId);
    }

}
